package edu.wtbu.cs.androiddemo.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.media3.exoplayer.ExoPlayer;
import androidx.media3.ui.PlayerView;
import androidx.recyclerview.widget.RecyclerView;

import edu.wtbu.cs.androiddemo.R;
import edu.wtbu.cs.androiddemo.activity.list.MyViewHolder;
import edu.wtbu.cs.androiddemo.extra.VideoSampleActivity;


public class VideoAdapter  extends RecyclerView.Adapter<VideoAdapter.ViedoViewHolder> {


    PlayerView playerView ;

    ExoPlayer player;

    private int[] videos = {R.raw.video1,R.raw.video2,R.raw.video3,R.raw.video4,
            R.raw.video5,R.raw.video6,R.raw.video7,R.raw.video8
    };

    protected Context context;

    public VideoAdapter(Context context){
        this.context=context;
        player = new ExoPlayer.Builder(context).build();
    }


    @NonNull
    @Override
    public ViedoViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
        ViedoViewHolder myViewHolder = new ViedoViewHolder(LayoutInflater.from(context).inflate(R.layout.video_recycler_item,parent,false));


        return null;
    }

    @Override
    public void onBindViewHolder(@NonNull ViedoViewHolder holder, int position) {

    }

    @Override
    public int getItemCount() {
        return 0;
    }

    public class ViedoViewHolder extends RecyclerView.ViewHolder{

        public ViedoViewHolder(@NonNull View itemView) {
            super(itemView);

        }
    }

}
